#include<fstream>
#include<iostream>
#include<vector>
#include<algorithm>
#include <time.h>
using namespace std;
int main(){
       clock_t start,end;
    ifstream fin("unsorted.txt");
    ofstream fout("sorted.txt");   
    vector <int> numbers;
	
	start=clock(); //to calculate the speed
    
    int temp;
    
    while(fin>>temp) numbers.push_back(temp);
    
    sort(numbers.begin(), numbers.end());
    
	for(int k=0 ; k<numbers.size() ; k++)
			fout<<numbers[k]<<endl;
    
    end=clock();
    
    cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl; // show how long it took

    return 0;
}
